package com.wry.service;

import com.wry.model.Order;
import com.wry.utils.PageResponse;

import java.util.List;

/**
 * <h1>  <h1>
 *
 * @author wry
 * @since 2023/8/21 11:16
 */
public interface OrderService {
    void saveAll(List<Order> orders);

    Order findById(Integer id);

    void deleteById(Integer id);

    void updateById(Order order);

    PageResponse<Order> findList(Order order, Integer pageIndex, Integer pageSize);

    PageResponse<Order> findListByName(String userName, Integer pageIndex, Integer pageSize);

    PageResponse<Order> findAll(Integer pageIndex, Integer pageSize);

    PageResponse<Order> findHighlight(Order order, Integer pageIndex, Integer pageSize);

    PageResponse<Order> rangeQueryByOrderNo(Long startNo,Long endNo, Integer pageIndex, Integer pageSize);

    PageResponse<Order> rangeQueryByTime(String startTime, String endTime, Integer pageIndex, Integer pageSize);
}
